<?php
/**
 * The template for displaying all pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */

get_header(); global $post; ?>

<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

<table cellspacing="0px" cellpadding="0px" border="0" id="post-<?php the_ID(); ?>" class="<?php echo $post->post_name ?>">
	<tr><td valign="top" height="68px" colspan="2">
		<table cellspacing="0px" cellpadding="0px" border="0" class="menubar">
       		<tr>
           		<td width="360px"><a href="<?php echo home_url('/') ?>"><img src="<?php bloginfo('stylesheet_directory')?>/images/logo.png" border="0" height="66px" width="223px"></a></td>
				<?php wv_top_menu() ?>
       		</tr>
   		</table><!-- table menu -->
	</td></tr>
	<tr>
		<td class="profile">
			<?php the_content() ?>
			<?php endwhile; // end of the page loop. ?>
			<?php query_posts(array('post_parent' => $post->ID, 'post_type' => 'page', 'orderby' => 'menu_order', 'order' => 'asc')); ?>
			<?php rewind_posts(); while (have_posts()) : the_post(); ?>
				<a class="pp" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
			<?php endwhile ?>
		</td>
		<td>&nbsp;</td>
	</tr>
</table>

<?php get_footer(); ?>

